package com.zhiche.lisa.mdm.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.zhiche.lisa.mdm.dao.mapper.DrivingLicenseTypeMapper;
import com.zhiche.lisa.mdm.dao.model.DrivingLicenseType;
import com.zhiche.lisa.mdm.service.DrivingLicenseTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DrivingLicenseTypeServiceImpl implements DrivingLicenseTypeService {

    @Autowired
    private DrivingLicenseTypeMapper drivingLicenseTypeMapper;

    @Override
    public List<DrivingLicenseType> getAllDrivingType() {
        EntityWrapper<DrivingLicenseType> ew = new EntityWrapper<>();
        return  drivingLicenseTypeMapper.selectList(ew);
    }
}
